package nl.hva.three2learn
{
	import mx.core.FlexGlobals;
	import mx.core.Application;

	public final class Variables
	{
		public function Variables()
		{
			throw new Error("Use the static methods please.");
		}
		
		public static function get isTeacher():Boolean
		{
			return FlexGlobals.topLevelApplication.parameters.teacher === "true";
		}
		
		public static function get instance():String
		{
			return FlexGlobals.topLevelApplication.parameters.instance || "_default";
		}

		public static function get name():String
		{
			return FlexGlobals.topLevelApplication.parameters.name || "ImADummy";
		}
		
		public static function host():String
		{
			return "localhost";
		}
	}
}
